package com.sg.dto.integration.component;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc DashboardTwoMenuDto
 * @使用场景
 */
@Data
public class DashboardTwoMenuDto extends BaseDto implements Serializable {

    /**
     * 大屏二级导航编码
     */
    @ApiModelProperty("大屏二级导航编码")
    private String dashboardTwoMenuCode;

    /**
     * 大屏二级导航名称
     */
    @ApiModelProperty("大屏二级导航名称")
    private String dashboardTwoMenuName;

    /**
     * 大屏二级导航图标
     */
    @ApiModelProperty("大屏二级导航图标")
    private String dashboardTwoMenuIcon;

    /**
     * 大屏二级导航别名
     */
    @ApiModelProperty("大屏二级导航别名")
    private String dashboardTwoMenuAlias;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DashboardTwoMenuDto that = (DashboardTwoMenuDto) o;
        return (
                dashboardTwoMenuCode == that.dashboardTwoMenuCode &&
                        dashboardTwoMenuName == that.dashboardTwoMenuName &&
                        dashboardTwoMenuIcon == that.dashboardTwoMenuIcon &&
                        dashboardTwoMenuAlias == that.dashboardTwoMenuAlias
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                dashboardTwoMenuCode,
                dashboardTwoMenuName,
                dashboardTwoMenuIcon,
                dashboardTwoMenuAlias
        );
    }

}
